package com.java.star.novel.core.bean;

import com.java.star.novel.entity.User;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author 零限
 * @date 2023/6/25
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class ConciseUser {
    private Long id;
    private Long username;

    public ConciseUser(User user) {
        this.id = user.getId();
        this.username = user.getUsername();
    }
}
